#小题大智慧，将s2中的元素出现在是只中删除
# s1 = "they are students. "
# s2 = "aioue"
##方法1
# for i in s2:
#     if i in s1:
#         s1 = s1.replace(i,'')
# print(s1)

##方法2
# s3 = ""
# for i in s1:
#     if i not in s2:
#         s3+=i
# print(s3)

##方法3
# s4 = ""
#去掉s2中的重复元素
# for i in s2:
#     if i not in s4:
#         s4+=i
# for i in s4:
#     if i in s1:
#       s1 = s1.replace(i,'')
# print(s1)

##小明不喜欢字母不是大写的单词
##小明不喜欢连续出现相同字母的单词
##输入单词，回答是否是小明喜欢的单词
###方法1
# DC = input("请输入单词：")
# if DC.isupper():
#    for i in range(len(DC)-1):
#      if DC[i] == DC[i+1]:
#          print("小明不喜欢")
#          break
#    else:
#        print("小明喜欢")
# else:
#     print("小明不喜欢")
# DC = input("请输入单词：")
#
# if DC.isupper():
#     string = ""
#     for i in range(len(DC)-1):
#         string+=DC[i:2+i]
#         print(string)
#         if string[0] == string[1]:
#             print("小明不喜欢")
#             break
#         else:
#             string = ""
#             continue
#     else:
#         print("小明喜欢")
# else:
#     print("小明不喜欢")